﻿@inject IDataCacheService _dataCacheService


@if (Model.IsInSteam)
{
    <MChip Label XSmall Color="primary" Class="mb-2 me-2">
        <MIcon Left XSmall>mdi-steam</MIcon>
        @((Model.PlayDuration/60.0).ToString("0.0")+" 小时")
    </MChip>
}

@if (Model.IsScored&& IsDark==false)
{
    <MChip Label XSmall Color="primary" Class="mb-2 me-2">
        <MIcon Left XSmall>mdi-star</MIcon>
        @((Model.TotalSocre.ToString()+" 分"))
    </MChip>
}

@if (Model.Type == PlayedGameType.WantToPlay)
{
    <MChip Label XSmall Color="primary" Class="mb-2 me-2">
        <MIcon Left XSmall>@IconType.WantToPlay.ToIconString() </MIcon>
        想玩
    </MChip>

}
else if (Model.Type == PlayedGameType.Playing)
{
    <MChip Label XSmall Color="primary" Class="mb-2 me-2">
        <MIcon Left XSmall>@IconType.Playing.ToIconString()</MIcon>
        正在玩
    </MChip>
}
else if (Model.Type == PlayedGameType.Played)
{
    <MChip Label XSmall Color="primary" Class="mb-2 me-2">
        <MIcon Left XSmall>@IconType.Played.ToIconString()</MIcon>
        已玩
    </MChip>
}
else if (Model.Type == PlayedGameType.Uninterested)
{
    <MChip Label XSmall Color="primary" Class="mb-2 me-2">
        <MIcon Left XSmall>@IconType.Uninterested.ToIconString()</MIcon>
        不感兴趣
    </MChip>

}
else if (Model.Type == PlayedGameType.UnPlayed)
{
    <MChip Label XSmall Color="primary" Class="mb-2 me-2">
        <MIcon Left XSmall>@IconType.UnPlayed.ToIconString()</MIcon>
        未玩
    </MChip>
}



@code {
    [Parameter]
    public GameRecordViewModel Model { get; set; }
    [Parameter]
    public bool IsDark { get; set; }
}
